package org.dromara.netbar.domain.bo;

import org.dromara.netbar.domain.NetbarGiftPack;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


/**
 * 礼包管理业务对象 netbar_gift_pack
 *
 * @author Lion Li
 * @date 2025-07-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = NetbarGiftPack.class, reverseConvertGenerate = false)
public class NetbarGiftPackBo extends BaseEntity {

    /**
     * 礼包ID
     */
    @NotNull(message = "礼包ID不能为空", groups = { EditGroup.class })
    private Long packId;

    /**
     * 礼包名称
     */
    @NotBlank(message = "礼包名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String packName;

    /**
     * 礼包购买金额
     */
    @NotNull(message = "礼包购买金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long purchaseAmount;

    /**
     * 有效期开始
     */
    private Date validStart;

    /**
     * 有效期结束
     */
    private Date validEnd;

    /**
     * 状态：1=上架，2=下架
     */
    private Long status;

    private List<NetbarGiftPackItemBo> giftPackItemList;

    private Long quantity;
}
